package com.example.testcontract.bean;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by admin on 2014/9/23.
 */
public class Dial {
    private String name;                //通话人姓名
    private String phoneNumber;        //通话人电话号码
    private String date;                // 通话类型
    private String state;               // 通话时间
    private long duration;             // 通话时长
    private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = sdf.format(date);
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }
}
